# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnote
pkgver=41.2
pkgrel=0
pkgdesc="Gnote is a port of Tomboy to C++"
url="https://wiki.gnome.org/Apps/Gnote"
arch="all !s390x" # error: 'convert_return_gchar_ptr_to_stdstring' is not a member of 'Glib'
license="GPL-3.0-or-later"
depends="dbus:org.freedesktop.Secrets"
makedepends="gtk+3.0-dev glibmm-dev gtkmm3-dev libsecret-dev gspell-dev
	libxslt-dev util-linux-dev intltool itstool desktop-file-utils meson"
options="!check" # missing dep: unittestcpp
subpackages="$pkgname-dbg $pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnote/${pkgver%.*}/gnote-$pkgver.tar.xz
	merge_file-args.patch
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e4270206a3a4b97b62a9b51577e7139548c45e23466083dcb2216a9908d243f32da30e3510fa26138a2a0b007814bc50209b51555f44fec88b1294265aeb33e7  gnote-41.2.tar.xz
d60f360ec2d4e3325137f2581190ca6d095c129117bedeb2aa89bd3533c95858a7d45285f46f8310731e02ed7f17840bb82904d08645fe7fdffb816d91f02851  merge_file-args.patch
"
